package com.movie.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime; // 导入 LocalDateTime

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Review {
    private Long id; // 主键
    private Long userId; // 用户ID
    private Long movieId; // 影片ID
    private Integer rating; // 评分 (例如 1-5)
    private String comment; // 评论内容
    private LocalDateTime reviewTime; // 评论时间

    // 添加用于关联查询的字段
    private User user;
    private Movie movie;
} 